<?php

namespace S3\Sample5Bundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use S3\Sample1Bundle\Entity\Connection;

/**
 * Description of LoadUserData
 *
 * @author minh.ton
 */
class LoadUserData implements FixtureInterface
{
    public function load(ObjectManager $manager) 
    {
        $connection = new Connection();
        $connection->setAccesstoken('123123');
        $connection->setAccountid('123123');
        $connection->setProvideraccountid('12');
        $connection->setProviderid('12');
        $connection->setRefreshtoken('test');
        $connection->setSecret('secret');
        
        $manager->persist($connection);
        $manager->flush();
        $manager->clear();        
    }
}